<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" xmlns:shro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>大成方略乐橙客户管理系统</title>
    <link rel="icon" href="/images/favicon.ico" type="image/ico">
    <link rel="stylesheet" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/js/bootstrap-multitabs/multitabs.min.css">
    <link rel="stylesheet" href="/css/style.min.css">
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css">
    <!--字体图标引入-->
    <link rel="preload" href="//at.alicdn.com/t/font_2527684_0fol51dbqttv.woff2" as="font" type="font/woff2" crossorigin="anonymous">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_2527684_0fol51dbqttv.css">
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>

    <!--固定table列-->
<!--    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>-->
    <link rel="stylesheet" href="/js/bootstrap-table/bootstrap-table-1.18.3.min.css">
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>

    <link rel="stylesheet" href="/css/skin.css">
    <link rel="stylesheet" href="/css/login/index.css">
    <!--<link rel="stylesheet" href="/css/skinFestival/mid-autumn.css">-->
    <script th:inline="javascript">
        var telephoneNumber = [[${telephoneNumber}]];
        var extensionNumber = [[${extensionNumber}]];
    </script>
</head>

<body onunload="frm_UnLoad();">
<!--<body>-->
<aside class="lyear-layout-sidebar">
    <div id="logo" class="sidebar-header">
        <a class="multitabs" href="#!"><img src="images/home-logo-new.png" width="150" title="乐橙客户关系管理系统" alt="乐橙客户关系管理系统"></a>
    </div>
    <input type="hidden" id="menuType" name="menuType" th:value="${menuType}">
    <input type="hidden" id="adminType" name="adminType" th:value="${adminType}">
    <div class="user-switch" th:if="${existManagerSysMenu} eq true or ${adminType} eq '1'">
        <a href="/managerLoginSuccess" th:if="${existManagerSysMenu}"><i class="mdi mdi-tumblr-reblog"></i><span>切换到管理系统</span></a>
        <a href="/userLoginSuccess" th:if="${menuType} eq manager and ${adminType} eq '1'"><i class="mdi mdi-tumblr-reblog"></i><span>切换到用户系统</span></a>
    </div>
    <div class="lyear-layout-sidebar-scroll">
        <nav class="sidebar-main">
            <ul class="nav nav-drawer">
                <!--管理模块菜单-->
                <li th:if="${adminType} eq '1' and ${managementModule != null}" class="nav-item active"><a class="multitabs" href="superAdminMain"><i class="iconfont icon-sy"></i> <span>超级管理员首页</span></a></li>
                <li th:if="${adminType} eq '2' and ${managementModule} != null" class="nav-item active"><a class="multitabs" href="main"><i class="iconfont icon-sy"></i> <span>后台首页</span></a></li>
                <li th:if="${managementModule != null}" class="nav-item nav-item-has-subnav" th:each="menu : ${managementModule}">
                    <a href="JavaScript:void(0);" th:if='${menu.menuUrl == "" or menu.menuUrl == null}'>
                        <!--<a th:if="${menuUrl == ''}" href="#" >
                            <a th:if="${menuUrl != ''}" th:href="@{'/front/'+ ${menuUrl?:'#'}}" >-->
                        <!--<i class="mdi mdi-database"></i>-->
                        <i th:class="${menu.menuIcon}"></i>
                        <span th:text="${menu.menuName}"></span>
                    </a>
                    <a th:if="${menu.menuUrl != '' and menu.menuUrl != null}" class="multitabs" th:href="@{'/front/'+ ${menu.menuUrl}}" >
                        <!--<i class="mdi mdi-database"></i>-->
                        <i th:class="${menu.menuIcon}"></i>
                        <span th:text="${menu.menuName}"></span>
                    </a>
                    <ul class="nav nav-subnav">
                        <li th:each="childSysMenu : ${menu.childSysMenuList}">
                            <a th:if="${#lists.isEmpty(childSysMenu.childSysMenuList)}" class="multitabs"  th:href="@{'/front/'+ ${childSysMenu.menuUrl}}">
                                <i th:class="${childSysMenu.menuIcon}"></i>
                                <span th:text="${childSysMenu.menuName}"></span>
                            </a>
                        </li>
                    </ul>
                </li>

                <!--用户模块菜单-->
                <li th:if="${menuType} eq user" class="nav-item active"><a class="multitabs" href="user/main"><i class="iconfont icon-sy"></i> <span>首页</span></a></li>
                <li th:if="${userModule != null}" class="nav-item nav-item-has-subnav" th:each="menu : ${userModule}">
                    <a href="JavaScript:void(0);" th:if='${menu.menuUrl == "" or menu.menuUrl == null}'>
                        <!--<a th:if="${menuUrl == ''}" href="#" >
                            <a th:if="${menuUrl != ''}" th:href="@{'/front/'+ ${menuUrl?:'#'}}" >-->
                        <!--<i class="mdi mdi-database"></i>-->
                        <i th:class="${menu.menuIcon}"></i>
                        <span th:text="${menu.menuName}"></span>
                    </a>
                    <a th:if="${menu.menuUrl != '' and menu.menuUrl != null}" class="multitabs" th:href="@{'/front/'+ ${menu.menuUrl}}" >
                        <!--<i class="mdi mdi-database"></i>-->
                        <i th:class="${menu.menuIcon}"></i>
                        <span th:text="${menu.menuName}"></span>
                    </a>
                    <ul class="nav nav-subnav">
                        <li th:each="childSysMenu : ${menu.childSysMenuList}" class="nav-item">
                            <a th:if="${#lists.isEmpty(childSysMenu.childSysMenuList)}" class="multitabs"  th:href="@{'/front/'+ ${childSysMenu.menuUrl}}">
                                <i th:class="${childSysMenu.menuIcon}"></i>
                                <span th:text="${childSysMenu.menuName}"></span>
                            </a>
                            <a th:if="${not #lists.isEmpty(childSysMenu.childSysMenuList)}" href="#">
                                <i th:class="${childSysMenu.menuIcon}"></i>
                                <span th:text="${childSysMenu.menuName}"></span>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </nav>
    </div>
</aside>
<!--End 左侧导航-->

<!--页面主要内容-->
<main class="lyear-layout-content main">
    <!--    <a href="JavaScript:void(0);" class="lyear-aside-toggler"><i class="mdi mdi-chevron-double-left"></i></a>-->
    <div class="lyear-aside-toggler">
        <span class="lyear-toggler-bar"></span>
        <span class="lyear-toggler-bar"></span>
        <span class="lyear-toggler-bar"></span>
        <i class="mdi mdi-chevron-left"></i>
    </div>
    <!-- 头部个人信息/消息 -->
    <div class="header-action">
        <ul class="topbar-right clearfix">
            <!--<li class="dropdown dropdown-notice pull-left" data-toggle="modal">
                <a href="#!" data-toggle="modal" data-target="#callCenter" id="callCenterBtn" class="icon-item">
                    <i class="mdi mdi-phone"></i>
                </a>
            </li>-->
            <li class="dropdown dropdown-notice pull-left" data-toggle="modal"  onclick="opencheckDuplicate()">
                <a href="#!" data-toggle="dropdown" class="icon-item">
                    <i class="mdi mdi-magnify"></i>
                </a>
            </li>
            <!-- 消息 -->
            <li class="dropdown dropdown-notice pull-left" onclick="messageTipTableInit()">
                <a href="JavaScript:void(0);" id="messagePrompt" class="icon-item">
                    <div class="notice-icon"><i class="mdi mdi-email-outline"></i></div>
                    <span class="badge badge-danger" id="unreadCount" style="display: none;"></span>
                </a>
            </li>
            <!-- 退出 -->
            <li class="dropdown dropdown-profile pull-left">
                <a href="#!" data-toggle="dropdown">
                    <!--<i class="mdi mdi-account-outline"></i>-->
                    <div class="avatar" id="headAvatar"><img src="" alt="" th:src="${accessUrl} ? ${accessUrl} : '/images/head-neutral.png'"></div>
                    <span><shiro:principal property="userName"/></span>
                    <i class="mdi mdi-chevron-down"></i>
                </a>
                <ul class="dropdown-menu dropdown-menu-right l-dropdown">
                    <li><a href="JavaScript:void(0);" onclick="userInfo()">个人信息</a></li>
                    <li><a href="JavaScript:void(0);" onclick="reload()">清空缓存</a></li>
                    <li class="divider"></li>
                    <li><a href="/logout">退出登录</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <!-- 头部个人信息/消息 End -->
    <div id="iframe-content"></div>
</main>
<!--End 页面主要内容-->

<!-- 修改密码模态框 -->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" id="editModel"
     data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog modal-lg" role="document" style="width: 650px;">
        <div class="modal-content">
            <div class="modal-body" style="min-height: 310px;">
                <!-- start -->
                <div class="card-header">
                    <h1>修改密码</h1>
                    <div type="button" class="close" data-dismiss="modal" aria-hidden='true'>x</div>
                </div>
                <form class="form-horizontal" style="margin-left: 150px;">
                    <div class="form-group">
                        <label class="col-sm-1 control-label" style="width: 130px;text-align: left;"
                               for="oldPassword">原密码</label>
                        <div class="col-sm-4">
                            <input type="password" id="oldPassword" name="oldPassword" style="width: 200px;"
                                   placeholder="请输入原密码" onblur="oldPasswordValidate()">
                            <div class="pwd-eye" id="old-pwd-eye"
                                 style="background-image: url('/images/login/password-hide.png');"
                                 data-flag="show" onclick="pwdEye('old-pwd-eye','oldPassword')"></div>
                            <span id="oldPasswordMsg" class="tipMsg"></span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-1 control-label" style="width: 130px;text-align: left;"
                               for="password">新密码</label>
                        <div class="col-sm-4">
                            <input type="password" id="password" name="password" style="width: 200px;"
                                   placeholder="请输入新密码" onblur="resetPasswordValidate()">
                            <div class="pwd-eye" id="pwd-eye"
                                 style="background-image: url('/images/login/password-hide.png');"
                                 data-flag="show" onclick="pwdEye('pwd-eye','password')"></div>
                            <span id="passwordMsg" class="tipMsg"></span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-1 control-label" style="width: 130px;text-align: left;"
                               for="rePassword">再次输入新密码</label>
                        <div class="col-sm-4">
                            <input type="password" id="rePassword" name="rePassword" style="width: 200px;"
                                   placeholder="请再次输入新密码" onblur="resetPasswordValidate()">
                            <div class="pwd-eye" id="re-pwd-eye"
                                 style="background-image: url('/images/login/password-hide.png');"
                                 data-flag="show" onclick="pwdEye('re-pwd-eye','rePassword')"></div>
                            <span id="rePasswordMsg" class="tipMsg"></span>
                        </div>
                    </div>

                </form>
                <div style="width: 100%;text-align: center;">
                    <button class="btn btn-primary" type="submit" style="margin-right: 20px;border-radius: 17px;"
                            onclick="resetPassword()">提交
                    </button>
                    <div type="button" class="btn btn-default" style="border-radius: 17px;" data-dismiss="modal">取消</div>
                </div>
                </form>
                <!-- end -->
            </div>
        </div>
    </div>
</div>

<!-- 跟进弹窗 -->
<div class="modal fade callCenterModal" tabindex="-1" role="dialog" data-backdrop="static" id="callCenter">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-body" id="callMin">
                <!--非核实电话 跟进id-->
                <input type="text" id="followInfoId" class="hidden">
                <!--核实电话 跟进id-->
                <input type="text" id="followInfoSource" class="hidden">
                <!--客户id-->
                <input type="text" id="callCustomerId" class="hidden">
                <!--单品客户Id/线索Id-->
                <input type="text" id="callId" class="hidden">
                <!--联系人id-->
                <input type="text" id="callContactId" class="hidden">
                <div class="btn-fullscreen">
                    <a href="JavaScript:void(0);" onclick="enlarge();" id="callFullBtn">大屏模式<i class="mdi mdi-fullscreen"></i></a>
                </div>
                <div class="info clearfix">
                    <!--<div class="head"><img src="" alt=""></div>-->
                    <div class="tell-name">当前正在与<span id="tellName">王大壮</span>通话</div>
                    <ul>
                        <li class="pull-left">工号：<span id="lblGH"></span></li>
                        <li class="pull-left">分机：<span id="lblFJH"></span></li>
                        <li class="pull-left">状态：<span id="divAction">未签入</span></li>
                        <!--<li class="pull-left">通话时长：<span id="lblTimer">00:00:00</span></li>
                        <li class="pull-left">等待人数：<span id="lblQueue">0</span></li>-->
                    </ul>
                </div>
                <div class="action">
                    <div class="number-label">
                        <input type="text" id="txtTelNO" class="form-control" placeholder="请输入联系号码" autocomplete="off">
                        <button type="button" role="button" data-toggle="collapse" href="#numberBox" class="btn btn-link" id="numberBtn"><i class="mdi mdi-dialpad"></i></button>
                        <!--<a href="JavaScript:void(0);" class="close" id="clearTel"><i class="mdi mdi-close"></i></a>-->
                        <label id="otherBtn" for="otherCheckbox" style="display: none;"><input type="checkbox" name="otherCheckbox" id="otherCheckbox"><span>+0</span></label>
                    </div>
                    <ol class="collapse" id="numberBox">
                        <li><a href="JavaScript:void(0);">1</a></li>
                        <li><a href="JavaScript:void(0);">2</a></li>
                        <li><a href="JavaScript:void(0);">3</a></li>
                        <li><a href="JavaScript:void(0);">4</a></li>
                        <li><a href="JavaScript:void(0);">5</a></li>
                        <li><a href="JavaScript:void(0);">6</a></li>
                        <li><a href="JavaScript:void(0);">7</a></li>
                        <li><a href="JavaScript:void(0);">8</a></li>
                        <li><a href="JavaScript:void(0);">9</a></li>
                        <li><a href="JavaScript:void(0);">*</a></li>
                        <li><a href="JavaScript:void(0);">0</a></li>
                        <li><a href="JavaScript:void(0);">#</a></li>
                    </ol>
                    <div class="well clearfix" id="telBox" style="display: none;">
                        <h3>其他联系方式</h3>
                        <div class="tel-list"></div>
                    </div>
                    <div class="btnbox" id="minCallBtn">
                        <ul>
                            <li><button type="button" name="btnCall" id="btnCall" class="btn btn-default" onclick="funBtnCall();return false;" disabled><i class="mdi mdi-phone-in-talk"></i>外拨</button></li>
                            <li><button type="button" name="btnSoftHook" id="btnSoftHook" class="btn btn-default" onclick="funBtnSoftHook();return false;" disabled><i class="mdi mdi-phone-hangup"></i>挂机</button></li>
                            <li>
                                <button type="button" name="btnLogin" id="btnLogin" class="readonly btn btn-default" onclick="funbtnLogin();return false;"><i class="mdi mdi-radiobox-marked"></i>签入</button>
                                <button type="button" name="btnLogOut" id="btnLogOut" class="btn btn-default" onclick="funbtnLogout();return false;" style="display: none;"><i class="mdi mdi-close-circle-outline"></i>签出</button>
                            </li>
                        </ul>
                    </div>
                    <div id="txtInfo" class="tellInfo well"></div>
                    <div id="CallHistory" style="display:none;">
                        <span style="width:136px; height:22px;font-size:12px; font-weight:bold;background:#E2F1F8;color:#044377; text-align:center; vertical-align:bottom;margin:0px 0px 0px 0px;">历史外呼记录</span><img
                            id="imgClose" src="/images/callCenter/PhoneClose.gif" height="22" width="22"
                            style="cursor:hand; vertical-align:bottom;"/>
                        <span id="CallHistoryText"
                              style="width:158px;background:#E2F1F8;height:175px;border:solid 1px #3399ff; vertical-align:top;margin:0px 0px 0px 0px;"></span>
                    </div>
                </div>
                <div class="bottom-bar">
                    <select id="switch" class="form-control pull-left">
                        <option value="切换线路">切换线路</option>
                        <option value="2">全国线路</option>
                        <option value="1">本地线路</option>
                    </select>
                    <!--<button type="button" class="btn btn-link pull-right">临时收起 <i class="mdi mdi-chevron-double-right"></i></button>-->
                    <button type="button" data-dismiss="modal" aria-label="close" class="btn btn-link pull-right">关闭</button>
                </div>
                <div class="follow-info" id="editFollowInfo">
                    <a href="#!" class="call-info-btn"><i class="mdi mdi-pencil-circle-outline"></i>填写跟进详情</a>
                    <div class="follow-info-form">
                        <div class="follow-success"><i class="mdi mdi-check-circle-outline"></i><p>提交成功</p></div>
                        <textarea placeholder="请填写跟进详情(300字以内)" class="form-control" id="followInfoText" maxlength="300"></textarea>
                        <div>
                            <button type="button" class="btn btn-link">取消</button>
                            <button type="button" class="btn btn-primary" onclick="followInfo(this);" disabled id="sureBtn">确定</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-body modal-body-max" id="callMax">
                <div class="call-header">
                    <h2><span><i class="mdi mdi-phone"></i></span>外呼联系人详情</h2>
                    <a href="JavaScript:void(0);" onclick="narrow();"><i class="mdi mdi-fullscreen-exit"></i></a>
                </div>
                <div class="modal-box-max">
                    <div class="call-contact-info">
                        <div class="contact-well">
                            <div class="user-info">
                                <div class="head" id="head">
                                    <a href="JavaScript:void(0);" id="avatar"><img src="" alt="头像"></a>
                                </div>
                                <h5 id="callContactName" class="text-label"></h5>
                                <h6 id="callContactPhone" class="text-label"></h6>
                            </div>
                            <div class="other-info">
                                <div class="list">
                                    <i class="mdi mdi-domain"></i>
                                    <span>所在公司</span>
                                    <p id="callCompany" class="text-label"></p>
                                </div>
                                <div class="list">
                                    <i class="mdi mdi-account-box-outline"></i>
                                    <span>职务信息</span>
                                    <p id="callPost" class="text-label"></p>
                                </div>
                                <div class="list m-0" style="height: 162px;">
                                    <i class="mdi mdi-tag-outline"></i>
                                    <span>标签<a href="JavaScript:void(0);" data-toggle="collapse" data-target="#callTags" class="pull-right">添加标签 <i class="mdi mdi-plus-circle-outline"></i></a></span>
                                    <div class="collapse call-tags-box" id="callTags">
                                        <h6>可选标签</h6>
                                        <ul class="clearfix" id="recommendTags"></ul>
                                    </div>
                                    <div>
                                        <input type="text" data-role="tagsinput" placeholder="输入标签，回车确认" class="form-control tagsinput" id="maxContactTags">
                                    </div>
                                </div>
                            </div>
                            <div class="contact-btn-box" id="maxCallBtn">
                            </div>
                        </div>
                    </div>
                    <div class="call-follow-info">
                        <h3>
                            填写跟进详情
                            <div class="pull-right">
                                <span class="follow-intention">无意向</span>
                                <label class="lyear-switch switch-solid switch-primary">
                                    <input type="checkbox" id="followIntention" onclick="callIntention();">
                                    <span></span>
                                </label>
                            </div>
                        </h3>
                        <div class="follow-form">
                            <div class="follow-success"><i class="mdi mdi-check-circle-outline"></i><p>提交成功</p></div>
                            <textarea class="form-control" placeholder="请填写跟进详情（300字内）" id="followInfoText2"></textarea>
                            <div class="text-right">
                                <button type="button" class="btn btn-link btn-clear-text">清空</button>
                                <button type="button" class="btn btn-primary" id="sureBtn2" onclick="followInfo(this);" disabled>提交</button>
                            </div>
                        </div>
                        <h3>最近跟进记录</h3>
                        <div class="follow-box text-label" id="callFollow"></div>
                    </div>
                    <div class="call-enterprise-info m-0">
                        <h3>企业信息</h3>
                        <h5 id="callCustomerName" class="text-label"></h5>
                        <div class="well">
                            <p id="companyProfile" class="text-label"></p>
                        </div>
                        <h4>基本信息</h4>
                        <div class="well">
                            <p class="pull-left w-30">财务人数：<span id="callCompanyPerson" class="text-label"></span></p>
                            <p class="pull-left w-30">参保人数：<span id="callCompanyInsure" class="text-label"></span></p>
                            <p class="pull-left w-40">注册资本：<span id="callCompanyCapital" class="text-label"></span></p>
                            <p class="clearfix">公司地址：<span id="callCompanyDress" class="text-label"></span></p>
                            <div class="tgs-box text-left">
                                <input type="text" data-role="tagsinput" placeholder="输入标签，回车确认" class="form-control tagsinput" id="maxCompanyTags">
                            </div>
                        </div>
                        <h4>其他联系人</h4>
                        <table id="callOtherTable"></table>
                        <!--<h4>相关产品</h4>
                        <div class="call-product-list text-label"></div>-->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 查重弹窗 -->
<div class="modal fade" id="staticBackdrop"  data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style="width: 100%; height: 100%;">
    <div class="modal-dialog" style="width: 60%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h5 class="modal-title" id="staticBackdropLabel">查重</h5>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="form-group col-lg-3 col-md-3 col-sm-4 col-xs-12">
                        <div>
                            <select class="form-control" id="poolType" name="poolType" type="text" title="按客户名称查重">
                                <option value="1" selected>按客户名称查重</option>
                                <option value="2">按联系方式查重</option>
                                <option value="3">按关键字</option>
                                <option value="4">按信用代码</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-3 col-sm-4 col-xs-12">
                        <div>
                            <select class="form-control" id="poolType1" name="poolType" type="text" title="全部">
                                <option value="A" selected>全部</option>
                                <option value="Y">会员</option>
                                <option value="N">非会员</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group col-lg-4 col-md-4 col-sm-4 col-xs-12">
                        <input class="form-control" id="checkContent" type="text"  placeholder="" style="background: #ffffff;" onblur="changeContent()">
                        <p style="color: red;display: none;" id="prompt" > * 不能为空</p>
                    </div>
                    <div class="form-group col-lg-2 col-md-2 col-sm-4 col-xs-12">
                        <button class="btn btn-primary" onclick="checkDuplicateBtn()">查重</button>
                    </div>
                    <hr size="2" style="width: 100%">
                    <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <table id="checkDuplicate"></table>
                    </div>
                </div>
            </div>
        </div>

    </div>

</div>

<!-- 消息弹窗 -->
<div class="modal fade" id="messageTipModal"  data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style="width: 100%;height: 100%;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="messageTipHeader"><img src="/images/icon-home-1.png" alt="">消息提示</h5>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <table id="messageTipTable" style="table-layout:fixed;"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 元旦弹窗 -->
<div class="modal fade festival-modal" id="festivalModal" data-backdrop="static" data-keyboard="false" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body p-0">
                <button type="button" class="close" data-dismiss="modal" aria-hidden='true'></button>
                <img src="/images/festival/festival-1.1.png" alt="">
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-multitabs/multitabs.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<script type="text/javascript" src="/js/index.min.js"></script>
<script type="text/javascript" src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<!-- 呼叫中心相关 -->
<script type="text/javascript" src="/js/callCenter/httpJs.js"></script>
<script type="text/javascript" src="/js/callCenter/shareJs.js"></script>
<!--<script type="text/javascript" src="/js/callCenter/connetHert.js"></script>-->
<script type="text/javascript" src="/js/callCenter/callCustom.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!--标签插件-->
<script type="text/javascript" src="/js/bootstrap-tagsinput/bootstrap-tagsinput.js"></script>
<!--table固定列-->
<!--<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>-->
<!--<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>-->
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min-1.18.3.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script type="text/javascript" src="/js/crm/main/index.js"></script>
<!--<script src="https://widget.heweather.net/simple/static/js/he-simple-common.js?v=1.1"></script>-->
<script type="text/javascript">
    var menuType = $("#menuType").val();//菜单类型-manager:管理系统;user:用户系统
    var adminType = $("#adminType").val();//管理类型--1:超管;2:普管
    var indexUrl = '';
    if(menuType == 'manager' && adminType == '1'){//超级管理员
        indexUrl = 'superAdminMain';
        // 隐藏超管个人业绩报表菜单
        // console.log('当前超级管理员账户');
        $('.multitabs[href="/front/resultsManager/personalResults"]').parent('li').hide();
    }else if(menuType == 'manager' && adminType == '2'){//普通管理员
        indexUrl = 'main';
    }else{//用户
        indexUrl = 'user/main'
        // indexUrl = '/front/contactManager/userContactForm'
    }
    $('#logo a').prop('href', indexUrl);
    function  userInfo() {
        parent.$(parent.document).data('multitabs').create({
            iframe: true,
            title: '个人信息',
            url: "/front/user/userInfo?userId="
        },true);
    }
    // 线路切换
    $('#switch').on('change', function() {
        var type = $(this).val();
        $.ajax({
            type: 'GET',
            dataType: "json",
            url: '/systemManager/callManager/getRandomTelephoneNumber',
            dataType: "json",
            data:{
                type : type
            },
            success: (function (data) {
                if(data.code == '000000'){
                    // 切换全国号码外显号码设置为10109088
                    if (type == 2) {
                        strShowNum = '10109088';
                    } else {
                        strShowNum = '0';
                    }
                    if (data.data) {
                        strGH = data.data;
                        funStart();
                    }
                }
            })
        });
    });
    // 呼叫中心弹窗打开自动签入
    var callStatus = true;
    $('#callCenter').on('show.bs.modal', function () {
        if (callStatus) {
            funStart();
            callStatus = false;
        }
    });

    // $('#callCenter').modal('show');
</script>
</body>
</html>